const mongoose  = require("mongoose")
//去除mongoose警告
mongoose.set('strictQuery', true);

const Schema = mongoose.Schema
// user模型===>users集合
const UserType = {
    username:String,
    password:String,
    avatar:String,
}
const UserModel = mongoose.model("user",new Schema(UserType))

module.exports = UserModel